import { createApp,ref} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from 'axios'

import wangEditor from 'wangeditor';
import BASE_URL from "@/http/BaseUrl";

window.axios=axios
window.ref=ref
window.router=router
window.BASE_URL=BASE_URL

let app = createApp(App);

// app.config.globalProperties.TokenAxios = TokenAxios;
// app.config.globalProperties.SimpleAxios = SimpleAxios;
//在vue实例中添加全局属性 课供任意页面在template标签中访问
app.config.globalProperties.wangEditor = wangEditor;
// 关闭生产环境提示
app.config.productionTip = false;

app.use(ElementPlus).use(store).use(router).mount('#app')
for(const [key,component] of Object.entries(ElementPlusIconsVue)){
  app.component(key,component)
}
